package com.bjpowernode.boss.enums;

public enum RespInfo {

    SUCCESS(900, "业务处理成功"),
    LOGIN_INFO_ERROR(1001, "登录用户名或密码有误"),
    INFO_SAVE_ERROR(1002, "登录信息保存失败"),
    REQUEST_PARAM_ERROR(901, "请求参数错误"),
    USER_EXIST_ERROR(2001, "用户已存在"),
    USER_NOT_EXIST_ERROR(2002, "用户不存在"),
    PAY_WAY_EXIST_ERROR(3001, "支付方式已存在"),
    PAY_WAY_NOT_EXIST_ERROR(3002, "支付方式不存在"),
    USER_PRODUCT_EXIST_ERROR(4001, "用户支付产品已存在"),
    USER_PRODUCT_NOT_EXIST_ERROR(4002, "用户支付产品不存在"),
    OPERATOR_TOKEN_INVALID(5001, "登录信息错误，请重新登录"),
    OPERATOR_TOKEN_NOT_EXIST(5002,"异常退出");

    private Integer code;
    private String message;

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    RespInfo() {
    }

    RespInfo(Integer code, String message) {
        this.code = code;
        this.message = message;
    }
}
